package com.hjn.demo01.web;

import com.hjn.demo01.constant.FileMessage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author: huaijn
 * @create: 2022/3/24 20:15
 * @description: demo
 **/
@Controller
public class IndexController {

    @Autowired
    private FileMessage message;

    @RequestMapping("/say")
    @ResponseBody
    public String say(){
        return "say:"+message.getEnviroment();
    }
}
